home *** CD-ROM | disk | FTP | other *** search
- global myXobj
-
- on startMovie
- if objectp(myXobj) then
- myXobj(mdispose)
- end if
- if the machineType < 256 then
- openXLib("misc_x Xobj")
- set myXobj to MISC_X(mnew)
- set gBootName to myXobj(mBootName)
- set gPrefsFolder to myXobj(mPrefsFolder)
- set gSystemFolder to myXobj(mSystemFolder)
- set gBootSpace to myXobj(mSpaceOnVol, gBootName)
- put "Boot Volume:" && gBootName & RETURN & "System Folder:" && gSystemFolder & RETURN & "Preferences Folder:" && gPrefsFolder & RETURN & "Boot Volume Free Disk Space:" && gBootSpace into field "System"
- else
- openXLib("misc_x")
- set myXobj to MISC_X(mnew)
- set gBootName to myXobj(mBootName)
- set gPrefsFolder to myXobj(mWindowsDirectory)
- set gBootSpace to myXobj(mSpaceOnVol, gBootName)
- put "Boot Volume:" && gBootName & RETURN & "Windows Directory:" && gPrefsFolder & RETURN & "Boot Volume Free Disk Space:" && gBootSpace into field "System"
- end if
- end
-
- on stopMovie
- myXobj(mdispose)
- if the machineType < 256 then
- closeXLib("misc_X Xobj")
- else
- closeXLib("misc_x")
- end if
- end
-
- on closeWindow
- stopMovie()
- tell the stage
- cleanupMIAW()
- end tell
- end
-
- on megabytes number
- set theFP to the floatPrecision
- set the floatPrecision to 2
- set megs to number / 1024 / 1024
- set the floatPrecision to theFP
- return megs
- end
-
- on gigaBytes number
- set theFP to the floatPrecision
- set the floatPrecision to 2
- set gigs to number / 1024 / 1024 / 1024
- set the floatPrecision to theFP
- return(megs)
- end
-